import request from '@/utils/request'

// 查询主播收益详情列表
export function listActormoney(query) {
  return request({
    url: '/chiwen/actormoney/list',
    method: 'get',
    params: query
  })
}

// 查询主播收益详情详细
export function getActormoney(id) {
  return request({
    url: '/chiwen/actormoney/' + id,
    method: 'get'
  })
}

// 新增主播收益详情
export function addActormoney(data) {
  return request({
    url: '/chiwen/actormoney',
    method: 'post',
    data: data
  })
}

// 修改主播收益详情
export function updateActormoney(data) {
  return request({
    url: '/chiwen/actormoney',
    method: 'put',
    data: data
  })
}

// 删除主播收益详情
export function delActormoney(id) {
  return request({
    url: '/chiwen/actormoney/' + id,
    method: 'delete'
  })
}

// 导出主播收益详情
export function exportActormoney(query) {
  return request({
    url: '/chiwen/actormoney/export',
    method: 'get',
    params: query
  })
}